package com.own.business.level.entity.map;

import com.own.business.level.entity.po.LevelConfig;
import com.own.component.common.base.entity.BaseMap;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * LevelConfigMapVo
 *
 * @author chenxueli
 * @date 2022-07-25 10:13:00
 */
@ApiModel("等级配置" + ConstantBeanSuffix.MAP_VO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class LevelConfigMapVo extends BaseMap<LevelConfig> {

    @ApiModelProperty("经验限制（需要大于上一级的上限）")
    private Integer exp;

    /**
     * 构造方法
     *
     * @param entity 原对象
     */
    public LevelConfigMapVo(@NonNull LevelConfig entity) {
        super(entity);
        this.exp = entity.getExp();
    }

}
